import axios from '@/utils/utile'  //引入axios

export let addCls=params=>axios.post('/goods/addcate',params)    //post方式,添加分类
export let getCls=params=>axios.get('/goods/catelist',{params})    //get方式,获取分类
export let delCls=params=>axios.get('/goods/delcate',{params})    //get方式,删除分类
export let editcls=params=>axios.post('/goods/editcate',params)    //post方式,修改分类
export let getList=params=>axios.get('/goods/list',{params})    //get方式,获取商品列表
export let delGoods=params=>axios.get('/goods/del',{params})    //get方式,删除商品
export let editGoods=params=>axios.post('/goods/edit',params)    //post方式,修改商品
export let addGoods=params=>axios.post('/goods/add',params)    //post方式,添加商品
export let getCategories=()=>axios.get('/goods/categories')    //get方式,查看商品分类
